<?php
class Ext_Form_Element_Date extends Zend_Form_Element_Xhtml
{
	const DATE_FORMAT = 'dd/MM/yyyy';
    /**
     * Default form view helper to use for rendering
     * @var string
     */
    public $helper = 'formDate';
    
   public function setValue($value)
    {
    	if ( $value instanceof Zend_Date ) {
			return parent::setValue( $value );    		
    	}
    	return parent::setValue( new Zend_Date($value, self::DATE_FORMAT ) );
    }


}